package com.caseProject.puremvc.mediator.gui
{
	import flash.display.Graphics;
	import flash.display.Sprite;

	public class GraphicFormat
	{
		private var _thickness:int = 1;
		private var _lineColor:uint = 0x000000;
		private var _fillColor:uint = 0xFFFFFF;
		
		public function GraphicFormat()
		{
		}
		
		public function doFormat (c:Sprite):Graphics 
		{
			var graph:Graphics =  c.graphics;
			graph.clear();
			graph.lineStyle(this.thickness, this.lineColor);
			graph.beginFill(this.fillColor);
			
			return graph;
		}

		public function get fillColor():uint
		{
			return _fillColor;
		}

		public function set fillColor(value:uint):void
		{
			_fillColor = value;
		}

		public function get lineColor():uint
		{
			return _lineColor;
		}

		public function set lineColor(value:uint):void
		{
			_lineColor = value;
		}

		public function get thickness():int
		{
			return _thickness;
		}

		public function set thickness(value:int):void
		{
			_thickness = value;
		}

	}
}